home *** CD-ROM | disk | FTP | other *** search
-
- demo.doc
-
- Internet: alexad3@icebox.iceonline.com
- Copyright 1995, April 14 by Alec Russell, ALL rights reserved
-
- Created - 1995/4/14
-
-
- Very useful for quick intro sequences for games.
-
- compile scripts with spc.exe
- Show scripts with dsrpcshw.exe
-
-
- commands -------------------------------------------
-
- * Starts a comment line which is ignored by the complier.
- Must the FIRST character on the line.
-
- done Unloads and frees shape, no longer drawn of course.
- For current set only
- 0x01
-
- quit Unloads ALL shapes, global quit.
- REQUIRED to exit! Must be in at least one set!
- 0x02
-
- start Starts all - REQUIRED command
- Sets tick to 0
- 0x03
-
- back x,y fname
- Load the background picture at x,y.
- This command can be outside of a set.
-
- allowed types:
-
- pbm
- lbm
- pcx
- bbm
- pbm
- m13
- pkb
-
- 0x04 followed by two ints
-
- setstart
- Must start all the commands for one bit map.
- 0x05
-
- setend
- Must end all the commands for a set
- 0x06
-
- load fname
- Must be followed by a filename to load, must be a bit map
- type. Can be loaded anytime in a set, will replace current shape
- if one already loaded. Changing types OK.
-
- pbm - may be clipped, no scaling
- m13 - may be scaled, clipping supported
- cbm - can only be moved
- pkb - can only be moved
-
- load shape1.pbm
- load shape2.cbm
- load shape3.m13
-
- 0x07 followed by assciZ filename
-
-
- x= Sets x position, no checking done for valid position,
- default is zero.
-
- 0x08 followed by one int
-
- y= Sets y position, no checking done for valid position,
- default is zero.
-
- 0x09 followed by one int
-
- dx= Sets dx for motion control,
- default is zero.
-
- 0x0a followed by one int
-
- dy= Sets dy for motion control,
- default is zero.
-
- 0x0b followed by one int
-
- For scalable bitmaps only ----------------
-
- sw= Set width for scalable bitmaps,
- default is width.
-
- 0x0c followed by one int
-
- sh= Set height for scalable bitmaps,
- default is height.
-
- 0x0d followed by one int
-
- dw= Set change in width,
- default is zero.
-
- 0x0e followed by one int
-
- dh= Set change in height, if exactly 255 then height is made
- porportional to orignal dimesions.
- Default is zero.
-
- 0x0f followed by one int
-
- End scalable only commands ----------------
-
-
- until x,y
- Repeat current setup until x=x AND y=y.
- if dy = 0, be sure that y=y.
- Be careful not to create an infinite loop.
-
- With out this or the next command nothing is actually drawn.
-
- 0x10 followed by two ints
-
-
- before tick
-
- Repeat current setup until the tick specified.
-
- 0x11 followed by one LONG int
-
- palette fname
- Load the palette, and make current
- This command can be outside of a set.
- 0x12 followed by filename ASCIIZ
-
- fadein fname
- Load palette, and fade it in.
- This command can be outside of a set.
-
- fadeout
- Fade to black.
- This command can be outside of a set.
-
- black Set palette to all black
- This command can be outside of a set.
-
-
- --------------------------------------------------------------
- Example of a SPC script.
-
- e.g.
-
- * start of file -------------------------------------------
- setstart
- load shape1.pbm
- x=-30
- y=20
- dx=1
- until 200, 20
- setend
-
- setstart
- load shape2.m13
- x=150
- y=120
- w=2
- h=2
- dx=-1
- dy=-1
- dw=1
- dh=1
- before 200
- dx=-1
- dy=-1
- until -100, -100
-
- quit
-
- setend
-
- * load background pic
- back rope.lbm 10,10
-
- * start all sets
- start
-
- * end of file ----------------------------------------------
-
-
- Script overview
-
- Define all your sets, each one has a setstart/setend pair.
- At least one set must have a quit command.
- After the last set do initial commands.
- The start command starts all the sets running, and continues until
- a quit command is encountered.
-
-
- ------------------------------------------------------------
- file format
- byte - number of sets
- commands
- setstart is followed by size of set, 2 bytes int
- start
- everything past here ignored
-
- ---------------------- EOF -----------------------------------------
-